<div ng-app="utilisateurModule">
	<div ng-controller="IdentificationController">
		<form role="form" name="formIdentification" class="formIdentification" ng-submit="post()" novalidate>
			<div class="row">
				<div class="col-md-5 col-md-offset-3">

					<alert ng-repeat="alert in alerts" type="alert.type" close="closeAlert($index)">{{alert.msg}}</alert>

					<div class="panel panel-primary">
						<div class="panel-heading">
							<h3 class="panel-title">Veuillez-vous identifier</h3>
						</div>
						<div class="panel-body">
							<div class="form-group">
								<label for="inputIdentificationLogin">Email</label>
							    <input id="inputIdentificationLogin" ng-model="utilisateur.email" type="email" placeholder="Entrez votre email" class="form-control" required>
							</div>
							<div class="form-group">
								<label for="inputAgenceEmail">Mot de passe</label>
							    <input id="inputAgenceEmail" ng-model="utilisateur.mdp" type=password placeholder="Entrez votre mot de passe" class="form-control" ng-required="utilisateur.mdp == '' ">
							</div>
							<div class="columns-centered" style="width: 175px;">
								<button type="submit" ng-disabled="formIdentification.$invalid || !formIdentification.$dirty" style="font-size: 0.75em;" class="btn btn-primary btn-lg">Se connecter</button>
								<button type="button" ng-click="cancel()" style="font-size: 0.75em;" class="btn btn-default btn-lg">Quitter</button>
							</div>
		              	</div>
		            </div>
				</div>
			</div>
		</form>
	</div>
</div>


